﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../jquery/themes/default/easyui.css" rel="stylesheet" />
    <link href="../jquery/themes/icon.css" rel="stylesheet" />
    <link href="../jquery/demo/demo.css" rel="stylesheet" />
    <script src="../jquery/jquery.min.js"></script>
    <script src="../jquery/jquery.easyui.min.js"></script>
    <script src="../jquery/locale/easyui-lang-zh_CN.js"></script>
	<meta charset="utf-8" />
</head>
<body>
    <input id="vv" />
    <input id="pwd" name="pwd" type="password" class="easyui-validatebox" data-options="required:true" />
    <input id="rpwd" name="rpwd" type="password" class="easyui-validatebox"
           required="required" validType="equals['#pwd']" />


<script type="text/javascript">
    $('#vv').validatebox({
        required: true,
        validType: 'email'
    });

    $.extend($.fn.validatebox.defaults.rules, {
        equals: {
            validator: function (value, param) {
                return value == $(param[0]).val();
            },
            message: 'Field do not match.'
        }
    });



</script>
</body>
</html>
